package com.inno.game.util;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.inno.game.handler.SocketHandler;

public class SpringHelper {
	static ApplicationContext ctx;
	public static void initApplicationContext(){
		ctx = new FileSystemXmlApplicationContext("classpath:applicationContext.xml"); 
	}
	public static SocketHandler getBean(String string) {
		return (SocketHandler) ctx.getBean(string);
	}
}
